import com.demo1.AController;import com.demo1.BController;import org.springframework.context.ApplicationContext;import org.springframework.context.support.ClassPathXmlApplicationContext;public class app2 {    public static void main(String[] args) {        ApplicationContext context =                new ClassPathXmlApplicationContext("spring_config.xml");        AController a = context.getBean("AController",AController.class);        a.getStudent();        BController b = context.getBean("BController", BController.class);        b.getStudent();    }}